package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PMyduwuMapper;
import com.haima.ziliao.domain.PMyduwu;
import com.haima.ziliao.service.IPMyduwuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 我的读物Service业务层处理
 * 
 * @author hima
 * @date 2024-11-15
 */
@Service
public class PMyduwuServiceImpl extends ServiceImpl<PMyduwuMapper, PMyduwu> implements IPMyduwuService
{
    @Autowired
    private PMyduwuMapper pMyduwuMapper;

    /**
     * 查询我的读物
     * 
     * @param id 我的读物主键
     * @return 我的读物
     */
    @Override
    public PMyduwu selectPMyduwuById(Long id)
    {
        return pMyduwuMapper.selectPMyduwuById(id);
    }

    /**
     * 查询我的读物列表
     * 
     * @param pMyduwu 我的读物
     * @return 我的读物
     */
    @Override
    public List<PMyduwu> selectPMyduwuList(PMyduwu pMyduwu)
    {
        return pMyduwuMapper.selectPMyduwuList(pMyduwu);
    }

    /**
     * 新增我的读物
     * 
     * @param pMyduwu 我的读物
     * @return 结果
     */
    @Override
    public int insertPMyduwu(PMyduwu pMyduwu)
    {
        return pMyduwuMapper.insertPMyduwu(pMyduwu);
    }

    /**
     * 修改我的读物
     * 
     * @param pMyduwu 我的读物
     * @return 结果
     */
    @Override
    public int updatePMyduwu(PMyduwu pMyduwu)
    {
        return pMyduwuMapper.updatePMyduwu(pMyduwu);
    }

    /**
     * 批量删除我的读物
     * 
     * @param ids 需要删除的我的读物主键
     * @return 结果
     */
    @Override
    public int deletePMyduwuByIds(Long[] ids)
    {
        return pMyduwuMapper.deletePMyduwuByIds(ids);
    }

    /**
     * 删除我的读物信息
     * 
     * @param id 我的读物主键
     * @return 结果
     */
    @Override
    public int deletePMyduwuById(Long id)
    {
        return pMyduwuMapper.deletePMyduwuById(id);
    }
}
